import {fetchPost} from "@/axios"

const Login = {
    logininto(params){
        return fetchPost(`/api/user/login?username=${params.username}&password=${params.password}`);
    },

    registerto(params){
        return fetchPost(`/api/user/register?username=${params.username}&password=${params.password}&role=${params.role}&class1=${params.selectclass}`);
    }
}

export default Login;